home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Screenblankers / Aurora / Install < prev    next >
Text File  |  1996-09-26  |  6KB  |  274 lines

  1. (set updateonly (exists "Aurora:Aurora" (noreq)))
  2. (if updateonly
  3.     (
  4.         (set path
  5.             (askdir
  6.                 (prompt "Where should the Aurora update be installed?")
  7.                 (help "Please select a location for Aurora.\n\nThis is where all updated Aurora files will be placed.")
  8.                 (default "Aurora:")
  9.                 (disk)
  10.             )
  11.         )
  12.         (set auroradir path)
  13.         (set @default-dest auroradir)
  14.     )
  15.     (
  16.         (set path
  17.             (askdir
  18.                 (prompt "Where should the Aurora directory be made?")
  19.                 (help "Please select a location for the Aurora directory.\n\nThis is where all Aurora related files will be placed.")
  20.                 (default "Work:")
  21.                 (disk)
  22.             )
  23.         )
  24.         (set auroradir (tackon path "Aurora"))
  25.         (set @default-dest auroradir)
  26.         (makedir auroradir
  27.             (infos)
  28.         )
  29.         (makeassign 'Aurora' auroradir)
  30.     )
  31. )
  32. (set path
  33.     (askdir
  34.         (prompt "Please select a default image directory.")
  35.         (help "Please select a default Aurora image directory.\n\nThis is where images will be loaded from in the event a required filename variable is not specified.")
  36.         (default "RAM:")
  37.         (disk)
  38.     )
  39. )
  40. (set imagedir path)
  41. (if (run "cpu >nil: check fpu" (safe))
  42.     (
  43.         (set defmods %111111011011011110)
  44.     )
  45.     (
  46.         (set defmods %111111011101101110)
  47.     )
  48. )
  49. (set moduleopts
  50.     (askoptions
  51.         (prompt "Which modules would you like selected by the 'Random' module?")
  52.         (help "Aurora feature a module that randomly selects any other module.  Please specify which modules you would like included in this random selection process.")
  53.         (choices "Arexx" "Aswarm" "Clock" "Cycle" "Julia" "JuliaFP" "Lines" "Mandelbrot" "MandelBrotFP" "Marquee" "Mystic" "Null" "Plasma" "Puzzle" "Raindrops" "Slideshow" "Squares" "Starfield")
  54.         (default defmods)
  55.     )
  56. )
  57. (set wbstart
  58.     (askbool
  59.         (prompt '\nWould you like the Aurora icon placed in your SYS:WBStartup drawer?')
  60.         (help 'This automatically starts Aurora every time you reboot your system.')
  61.         (choices "Yes" "No")
  62.     )
  63. )
  64. (set ptreplay
  65.     (askbool
  66.         (prompt '\nWould you like ptreplay.library copied to your LIBS: drawer?')
  67.         (help 'This enables Protracker .MOD support while Aurora is blanked.')
  68.         (choices "Yes" "No")
  69.     )
  70. )
  71. (makedir "Aurora:Data")
  72. (makedir "Aurora:IFF")
  73. (makedir "Aurora:Modules")
  74. (makedir "Aurora:Rexx")
  75. (copyfiles
  76.     (source 'Aurora_Install:Libs')
  77.     (dest 'Aurora:Libs')
  78.     (all)
  79. )
  80. (copyfiles
  81.     (source 'Aurora_Install:IFF')
  82.     (dest 'Aurora:IFF')
  83.     (all)
  84. )
  85. (copyfiles
  86.     (source 'Aurora_Install:Modules')
  87.     (dest 'Aurora:Modules')
  88.     (all)
  89. )
  90. (copyfiles
  91.     (source 'Aurora_Install:Data')
  92.     (dest 'Aurora:Data')
  93.     (all)
  94. )
  95. (textfile
  96.     (dest "Aurora:Data/Random.list")
  97.     (if (BITAND moduleopts %1)
  98.         (append 'Arexx\n')
  99.     )
  100.     (if (BITAND moduleopts %10)
  101.         (append 'Aswarm\n')
  102.     )
  103.     (if (BITAND moduleopts %100)
  104.         (append 'Clock\n')
  105.     )
  106.     (if (BITAND moduleopts %1000)
  107.         (append 'Cycle\n')
  108.     )
  109.     (if (BITAND moduleopts %10000)
  110.         (append 'Julia\n')
  111.     )
  112.     (if (BITAND moduleopts %100000)
  113.         (append 'JuliaFP\n')
  114.     )
  115.     (if (BITAND moduleopts %1000000)
  116.         (append 'Lines\n')
  117.     )
  118.     (if (BITAND moduleopts %10000000)
  119.         (append 'MandelBrot\n')
  120.     )
  121.     (if (BITAND moduleopts %100000000)
  122.         (append 'MandelBrotFP\n')
  123.     )
  124.     (if (BITAND moduleopts %1000000000)
  125.         (append 'Marquee\n')
  126.     )
  127.     (if (BITAND moduleopts %10000000000)
  128.         (append 'Mystic\n')
  129.     )
  130.     (if (BITAND moduleopts %100000000000)
  131.         (append 'Null\n')
  132.     )
  133.     (if (BITAND moduleopts %1000000000000)
  134.         (append 'Plasma\n')
  135.     )
  136.     (if (BITAND moduleopts %10000000000000)
  137.         (append 'Puzzle\n')
  138.     )
  139.     (if (BITAND moduleopts %100000000000000)
  140.         (append 'RainDrops\n')
  141.     )
  142.     (if (BITAND moduleopts %1000000000000000)
  143.         (append 'Slideshow\n')
  144.     )
  145.     (if (BITAND moduleopts %10000000000000000)
  146.         (append 'Squares\n')
  147.     )
  148.     (if (BITAND moduleopts %100000000000000000)
  149.         (append 'Starfield\n')
  150.     )
  151.     (append imagedir'\n')
  152.     (safe)
  153. )
  154. (copyfiles
  155.     (source 'Aurora_Install:')
  156.     (dest 'Aurora:')
  157.     (choices 'Aurora' 'Aurora.info' 'PrefEd')
  158. )
  159. (if wbstart
  160.     (copyfiles
  161.         (source 'Aurora_Install:')
  162.         (dest 'Sys:WBStartup')
  163.         (choices 'Aurora.info')
  164.     )
  165.     (set dummyvar 0)
  166. )
  167. (if ptreplay
  168.     (copylib
  169.         (source 'Aurora_Install:FreeWare/ptreplay.library')
  170.         (dest 'LIBS:')
  171.     )
  172.     (set dummyvar 0)
  173. )
  174. (set opal (exists "OpalPaint:Loaders" (noreq)))
  175. (if opal
  176.     (
  177.         (set opaldata
  178.             (askbool
  179.                 (prompt '\nDo you want to install the OpalVision Datatypes loader?')
  180.                 (help 'This loader allows you to load any image supported by the datatypes.library')
  181.                 (choices "Yes" "No")
  182.             )
  183.         )
  184.         (if opaldata
  185.             (copyfiles
  186.                 (source 'Aurora_Install:Opal')
  187.                 (dest 'OpalPaint:Loaders')
  188.                 (all)
  189.             )
  190.             (set dummyvar 0)
  191.         )
  192.     )
  193.     (set dummyvar 0)
  194. )
  195. (if updateonly
  196.     (
  197.         (if (exists "SYS:WBStartup/Aurora" (noreq))
  198.             (
  199.                 (delete 'SYS:WBStartup/Aurora' force)
  200.             )
  201.             (
  202.                 (set dummyvar 0)
  203.             )
  204.         )
  205.         (if (exists "Aurora:Drivers/Amiga_AGA" (noreq))
  206.             (
  207.                 (delete 'Aurora:Drivers/Amiga_AGA' force)
  208.             )
  209.             (
  210.                 (set dummyvar 0)
  211.             )
  212.         )
  213.         (if (exists "Aurora:Drivers/Amiga_ECS" (noreq))
  214.             (
  215.                 (delete 'Aurora:Drivers/Amiga_ECS' force)
  216.             )
  217.             (
  218.                 (set dummyvar 0)
  219.             )
  220.         )
  221.         (if (exists "Aurora:Drivers/OpalVision" (noreq))
  222.             (
  223.                 (delete 'Aurora:Drivers/OpalVision' force)
  224.             )
  225.             (
  226.                 (set dummyvar 0)
  227.             )
  228.         )
  229.         (if (exists "Aurora:Drivers" (noreq))
  230.             (
  231.                 (delete 'Aurora:Drivers' force)
  232.             )
  233.             (
  234.                 (set dummyvar 0)
  235.             )
  236.         )
  237.         (if (exists "LIBS:Aurora_Amiga_AGA.library" (noreq))
  238.             (
  239.                 (delete 'LIBS:Aurora_Amiga_AGA.library' force)
  240.             )
  241.             (
  242.                 (set dummyvar 0)
  243.             )
  244.         )
  245.         (if (exists "LIBS:Aurora_Amiga_ECS.library" (noreq))
  246.             (
  247.                 (delete 'LIBS:Aurora_Amiga_ECS.library' force)
  248.             )
  249.             (
  250.                 (set dummyvar 0)
  251.             )
  252.         )
  253.         (if (exists "LIBS:Aurora_OpalVision.library" (noreq))
  254.             (
  255.                 (delete 'LIBS:Aurora_OpalVision.library' force)
  256.             )
  257.             (
  258.                 (set dummyvar 0)
  259.             )
  260.         )
  261.     )
  262.     (
  263.         (startup @app-name
  264.             (prompt "\nAurora needs to append your S:User-Startup file to include a required assign statement.")
  265.             (help "This assignment is REQUIRED by Aurora.")
  266.             (command "Assign Aurora: "auroradir"\n")
  267.         )
  268.     )
  269. )
  270. (set @execute-dir "Aurora:")
  271. (run "Aurora:Aurora"
  272.     (safe)
  273. )
  274.